package cn.vpclub.admin.web.home;

import cn.vpclub.admin.mapper.BannerMapper;
import cn.vpclub.admin.util.BaseResponse;
import cn.vpclub.admin.util.ResponseCodeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "banner")
public class BannerController {
    Logger log = LoggerFactory.getLogger(BannerController.class);
    @Autowired
    BannerMapper bannerMapper;

//    @GuestToken(required = true)
    @RequestMapping(value = "selectBanner", method = RequestMethod.POST)
    public BaseResponse selectBanner() {
        return BaseResponse.info(ResponseCodeEnum.SUCCESS, bannerMapper.selectList(null));
    }
}
